from msedge.selenium_tools import Edge, EdgeOptions
from selenium import webdriver
import time

options = EdgeOptions()
options.use_chromium = True

def get_driver(url,i):
    if i==0:
        driver=Edge(options = options)
        print("打开了edge浏览器")
    elif i==1:
        driver=webdriver.Chrome()
        print("打开了chrome浏览器")
    else:
        print("请启动浏览器")
    driver.get(url)

if __name__=="__main__":
    url="http://www.baidu.com"
    for i in range(2):
        get_driver(url,i)
        time.sleep(5)